

import os ,requests

def getmovieid():
    url=os.getenv('base_url')+os.getenv('movieid_url')
    body = {
        "page": 1,
        "count": 10
    }
    res = requests.get(url, params=body).json()
    print("查询热门电影列表:", res)
    # 提取电影id
    return  res['result'][3]['movieId']
